<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2023-02-08 21:51:00
 * @Last Modified time: 2023-02-08 22:04:20
 */
namespace app\common\dao\store;

use frank\base\BaseDao;
use app\common\model\store\OrderDeliveryModel;

/**
 * Class OrderDeliveryDao
 * @package app\common\dao\store
 */
class OrderDeliveryDao extends BaseDao
{
    /**
     * 设置模型名
     */
    protected function setModel(): string
    {
        return OrderDeliveryModel::class;
    }

    /**
     * 获取全部
     */
    public function getDeliverySelect(array $where = [],$with = ['goods'])
    {
        return $this->search($where)->with($with)->order('id DESC')->select()->toArray();
    }


}
